package com.wits.qso.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.wits.platform.dao.impl.BaseDaoImpl;
import com.wits.platform.entity.User;
import com.wits.qso.dao.custom.TeacherDaoCustom;
import com.wits.qso.entity.BtableH;
import com.wits.qso.entity.Teacher;

@Component
public class TeacherDaoImpl extends BaseDaoImpl<Teacher, String> implements TeacherDaoCustom {

	@Override
	public List<User> getUser(String id) {
		String strSql = " select * from wits_user where user_id='"+id+"'";
		return em.createNativeQuery(strSql,User.class).getResultList();
	}

}
